package com.rongma.waterdrop.model;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobFile;

/**
 * 用户的model 用户名 头像 分数 签名档 编程时间
 * Created by RongMa on 16/5/26.
 */
public class User extends BmobObject
{
    private String username;   //用户名
    private BmobFile portrait; //头像
    private Long score;   //分数
    private String signature; //签名档
    private Long codeTime; //编程时间 秒数
    private String imageFileUrl; //图片存储路径
    private Integer upload;

    public User(String username, String imageFileUrl, Long score, String signature, Long codeTime) {
        this.username = username;
        this.imageFileUrl = imageFileUrl;
        this.score = score;
        this.signature = signature;
        this.codeTime = codeTime;
    }

    public User(String username,BmobFile portrait,Long score,String signature,Long codeTime)
    {
        this.username = username;
        this.portrait = portrait;
        this.score = score;
        this.signature = signature;
        this.codeTime = codeTime;
    }

    public User() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public BmobFile getPortrait() {
        return portrait;
    }

    public void setPortrait(BmobFile portrait) {
        this.portrait = portrait;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public Long getCodeTime() {
        return codeTime;
    }

    public void setCodeTime(Long codeTime) {
        this.codeTime = codeTime;
    }

    public String getImageFileUrl() {
        return imageFileUrl;
    }

    public void setImageFileUrl(String imageFileUrl) {
        this.imageFileUrl = imageFileUrl;
    }

    public Integer getUpload() {
        return upload;
    }

    public void setUpload(Integer upload) {
        this.upload = upload;
    }
}
